package com.opeartion.dao;

import com.opeartion.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author sanshi
 * @version 1.0
 * @data 2020/6/6-18:59
 */

@Mapper
@Repository
public interface RankMapper {
    /**
     * 查询行业
     */
    List<Category> findCategory();

    List<Category> findCategory(String name);

    List<Category> findCategoryAndClass(int id);
    /**
     * 修改行业
     */
    void updateCategory(Map map);
    /**
     * 删除行业
     */
    int deleteCategory(int id);

    int deleteCategoryClass(int id);
}
